﻿namespace SLClient.ServiceAPI
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.Serialization;
    using System.Threading;

    [GeneratedCode("System.Runtime.Serialization", "4.0.0.0"), DebuggerStepThrough, DataContract(Name="ViwTopWinnerInfo", Namespace="http://www.slclient.com")]
    public class ViwTopWinnerInfo : INotifyPropertyChanged
    {
        private int OrderIdField;
        private string PlayNameField;
        private decimal? ProfitField;
        private string ProfitTypeField;
        private PropertyChangedEventHandler _PropertyChanged;

        public event PropertyChangedEventHandler PropertyChanged
        {
            add
            {
                PropertyChangedEventHandler handler2;
                PropertyChangedEventHandler propertyChanged = this._PropertyChanged;
                do
                {
                    handler2 = propertyChanged;
                    PropertyChangedEventHandler handler3 = (PropertyChangedEventHandler) Delegate.Combine(handler2, value);
                    propertyChanged = Interlocked.CompareExchange<PropertyChangedEventHandler>(ref this._PropertyChanged, handler3, handler2);
                }
                while (propertyChanged != handler2);
            }
            remove
            {
                PropertyChangedEventHandler handler2;
                PropertyChangedEventHandler propertyChanged = this._PropertyChanged;
                do
                {
                    handler2 = propertyChanged;
                    PropertyChangedEventHandler handler3 = (PropertyChangedEventHandler) Delegate.Remove(handler2, value);
                    propertyChanged = Interlocked.CompareExchange<PropertyChangedEventHandler>(ref this._PropertyChanged, handler3, handler2);
                }
                while (propertyChanged != handler2);
            }
        }

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this._PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public int OrderId
        {
            get
            {
                return this.OrderIdField;
            }
            set
            {
                if (!this.OrderIdField.Equals(value))
                {
                    this.OrderIdField = value;
                    this.RaisePropertyChanged("OrderId");
                }
            }
        }

        [DataMember]
        public string PlayName
        {
            get
            {
                return this.PlayNameField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PlayNameField, value))
                {
                    this.PlayNameField = value;
                    this.RaisePropertyChanged("PlayName");
                }
            }
        }

        [DataMember]
        public decimal? Profit
        {
            get
            {
                return this.ProfitField;
            }
            set
            {
                if (!this.ProfitField.Equals(value))
                {
                    this.ProfitField = value;
                    this.RaisePropertyChanged("Profit");
                }
            }
        }

        [DataMember]
        public string ProfitType
        {
            get
            {
                return this.ProfitTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ProfitTypeField, value))
                {
                    this.ProfitTypeField = value;
                    this.RaisePropertyChanged("ProfitType");
                }
            }
        }
    }
}

